var express = require('express');
var router = express.Router();
var studentController = require("../controller/studentController.js");


// 获取学生
router.get("/studentLists", studentController.getStudentList);


// 添加学生
router.post('/addStudent', studentController.addStudent);

// 删除学生
router.post('/deleteStudent', studentController.deleteStudent);

// 编辑学生
router.post('/editStudent', studentController.editStudent);


module.exports = router;
